<%@ page language="java" pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="x-ua-compatible" content="ie=7" />
<title>美瀛商旅-员工中心</title>
<script src="${ctxPath}/resource/front/js/airLines.js" type="text/javascript"></script>
<script type="text/javascript">
</script>
</head>

<body>
<!--内容-->
    <ul>
          <li class="titleonly">
          <img src="${ctxPath}/css/style/base/image/dot.gif" width="15" height="16" class="dot" />&gt;&gt;国内订单信息查看 <a href="javascript:history.back()"><img src="${ctxPath}/css/style/base/image/backtrack.gif" width="14" height="14" align="absmiddle" class="backtrack"/>返回</a>
        </li>
        </ul>
        <ul>
        
      <div id="check_see">
<div id="check_top">
	<input type="hidden" id="orderId" value="${param['id']}"></input>
	<div id="title_c"><li>订单信息</li></div>
    <div id="content_c">
    <li class="w50">订单号：<strong>${bOrder.orderNo}</strong></li>
    <li class="w10"></li>
    <li class="w40">航程类型：<span><fmt:message key="bOrder.flightType${bOrder.flightType}"></fmt:message> </span></li>
    <li class="w50">订单状态：<span><fmt:message key="bOrder.status${bOrder.status}"></fmt:message></span></li>
      <li class="w10"></li>
    <li class="w40">订单来源：<span>${bOrder.source}</span></li>
    <li class="w50">pnr：<span id="change_2">${bOrder.pnr}</span>
   </li>
    <li class="w10"></li>
    <li class="w40">匹配政策：<span style="color:#09F; font-weight:bold"><a href="${ctxPath}/admin/order/policys.do?cmd=viewDetail&policyId=${bOrder.policy.policyId}">${bOrder.policy.policyId}</a></span></li>
 
    <li class="w50">出票渠道：<span id="change_6">${bOrder.ticketChannel}</span>
    </li>
    <li class="w10"></li>
    <li class="w40">出票方式：
    <span id="change_5">${bOrder.ticketMode}</span>
    </li>
  <!--   <li class="w50">保险订单号：<span>mei15161561351613813</span></li>
    <li class="w10"></li>
    <li class="w40">保险产品：<span>百年交通工具意外伤害保险</span></li> -->
    <li class="w50">订单金额：<span id="change_3">￥${bOrder.allPrice}</span>
    </li>
    <li class="w10"></li>
    <li class="w40">未支付金额：<span id="change_4">￥${bOrder.noPay}</span>
    </li>
    <li class="w50">机票金额：<span>￥${bOrder.price}</span></li>
    <li class="w10"></li>
    <li class="w40">保险金额：<span>￥${bOrder.insuranceStatistics}</span></li>
     <%-- <li class="w50">快递费：<span>￥${bOrder.xcdPrice}</span></li> --%>
     <c:if test="${bOrder.status==31}">
        <li class="w50">待退款金额：<span>￥${bOrder.price}</span></li>
          <li class="w10"></li>
        <li class="w40">退款备注：<span>${bOrder.remark}</span></li>
        </c:if>
<%--     <li class="w50">保险交易流水号：</li>
    <li class="w10"></li>
    <li class="w40">产品类型：<span>${bOrder.policy.policyId}</span></li> --%>
    <div id="clear"></div>
    </div>
</div>
	<div id="check_flight">
    	    	<div id="title_c">
            <li class="f150">航空公司</li>
            <li class="f60">航班号</li>
            <li class="f50">舱位</li>
            <li class="f30">机型</li>
            <li class="f100">航班时间</li>
            <li class="f120">起降机场</li>
            <li class="f40">里程</li>
            <li class="f60">飞行时间</li>
            <li class="f40">经停</li>
            <div id="clear"></div>
     	</div>
        
        <c:forEach var="flight" items="${bOrder.flights}" varStatus="item">
        <div id="content_c">
            <li class="fc150"><img src="${ctxPath}/resource/front/js/airlineImage/${fn:substring(flight.code,0,2)}.gif" /><label id="flightName"></label></li>
            <script>
    		var carrier='${fn:substring(flight.code,0,2)}';
    		for(var i=0;i<airLines.length;i++){
    			if(carrier==airLines[i].code){
    				carrierName=airLines[i].name;
    				$("#flightName").text(carrierName);
    				break;
    			}
    		};
    		</script>
            <li class="fc80"><span id="change_code">${flight.code}</span>
            </li>
            <li class="fc60">${flight.cabin}</li>
            <li class="fc30">--</li>
             <li class="fc130"><span id="flight_day">${flight.arrDay}<br />${flight.depTime}-${flight.arrTime}</span>
             </li>
             <li class="fc120">${flight.boardPointName}<br />${flight.offPointName}</li>
            <li class="fc60">${flight.mileage}公里</li>
            <li class="fc60">${flight.flightTime}分钟</li>
            <li class="fc40">${flight.stop}</li>
        </div>
        </c:forEach>
    </div>
	
    <div id="check_msg">
    	<div id="title_c">
            <li class="f100">旅客类型</li>
            <li class="f60">优惠价</li>
            <li class="f60">票面价</li>
            <li class="f40">机建</li>
            <li class="f40">燃油</li>
            <li class="f40">人数</li>
            <li class="f40">保险</li>
            <li class="f100">保险份数</li>
            <li class="f60">合计</li>
            <li class="f40">快递</li>
            <li class="f40">总价</li>
            <div id="clear"></div>
     	</div>
     	
     	<c:forEach var="passengerDto" items="${passengerDtos}" varStatus="item"> 
        <div id="content_c">
            <li class="fc100"><fmt:message key="passenger.ageType${passengerDto.passengerType}"></fmt:message></li>
            <li class="fc80"><span>￥<fmt:parseNumber value="${passengerDto.viewPrice}"></fmt:parseNumber></span></li>
            <li class="fc60"><span>￥<fmt:parseNumber value="${passengerDto.discountPrice}"></fmt:parseNumber></span></li>
            <li class="fc60"><span>￥<fmt:parseNumber value="${passengerDto.constructionFee}"></fmt:parseNumber></span></li>
            <li class="fc40"><span>￥<fmt:parseNumber value="${passengerDto.fuelTax}"></fmt:parseNumber></span></li>
            <li class="fc60"><span>${passengerDto.passengerCount}</span></li>
            <li class="fc40"><span>￥<fmt:parseNumber value="${passengerDto.bxPrice}"></fmt:parseNumber></span></li>
            <li class="fc120"><span><fmt:parseNumber value="${passengerDto.bxCount}"/></span></li>
            <li class="fc60"><span>￥<fmt:parseNumber value="${passengerDto.totalPrice}"/></span></li>
            <li class="fc60">
             <c:if test="${fn:length(passengerDtos)==item.count}">
            <span>${bOrder.xcdPrice}
            </span>
            </c:if>
            </li>
             <li class="fc40"><span style="color:#F36">
           	 <c:if test="${fn:length(passengerDtos)==item.count}">
          	  ￥<fmt:parseNumber value="${bOrder.allPrice}"/>
            </c:if></li>
            <div id="clear"></div>
        </div>
        </c:forEach>
    </div>
    	<div id="check_change">
        	<div id="title_c">
            <li>退改签说明：</li>
            </div>
            <div id="content_c">
            <li>${bOrder.backnote}</li>
            </div>
        </div>
			<div id="check_explain">
            	<div id="title_c">
                <li>舱位说明：</li>
                </div>
                <div id="content_c">
                <li>${bOrder.cabinnote}</li>
                </div>
            </div>
            
            <div id="check_guest">
            	<div id="title_c">
                <li>乘机人数：${fn:length(bOrder.passengers)}人</li>
                </div>
                <div id="content_c">
                <c:forEach var="passenger" items="${bOrder.passengers}">
                <ul>
                <li class="w40">成人：${passenger.name}</li>
                <li class="w40">身份证：<span>${passenger.cardNum}</span></li>
                <li class="w20">票号:${passenger.eticketNum}</li>
                <div id="clear"></div>
                </ul>
                <c:if test="${fn:length(passenger.insurances)>0}" >
                <ul>
                <li class="w70">保险公司：<span>${passenger.bxSource}</span></li>
                <li class="w20">保险价格：<span>${passenger.bxPrice}</span></li>
                <li class="w10">份数:<span>${fn:length(passenger.insurances)}</span></li>
                <div id="clear"></div>
                </ul>
                <ul>
                <c:forEach var="insurance" items="${passenger.insurances }">
                <li class="w50">保单号：</li>
                 <li class="w50">状态：<span><fmt:message key="insurance.bxStatus${insurance.bxStatus}"/></span></li>
                <div id="clear"></div>
                </c:forEach>
                </ul>
                </c:if>
                <div id="clear"></div>
                </c:forEach>
                </div>
            </div>
            
            	<div id="check_linkman">
                    <div id="title_c">
                    <li>联系人：</li>
                    </div>
                    <div id="content_c">
          	        <li class="w40">联系人：<span>${bOrder.contact}</span></li>
                    <li class="w30">手机：<span>${bOrder.contactMob}</span></li>
                    <li class="w30">电子邮件：${bOrder.contactEmail}</li>
                    <div id="clear"></div>
                    </div>
                </div>
                
                <div id="check_bx">
                    <div id="title_c">
                    <li>报销信息：</li>
                    </div>
                    <c:if test="${not empty bOrder.expType}">
                    <div id="content_c">
                    <li class="w40">快递方式：<span><fmt:message key="bOrder.expType${bOrder.expType}"></fmt:message></span></li>
                    <li class="w30">快递公司：<span>${bOrder.company}</span></li>
                    <li class="w30">快递号：${bOrder.orderNumber}</li>
                    <div id="clear"></div>
                    <li class="w40">快递日期：<span><fmt:formatDate value="${bOrder.sendtime}" pattern="yyyy-MM-dd" /></span></li>
                    <li class="w30">收件人：<span>${bOrder.sjr}</span></li>
                    <li class="w30">电话：${bOrder.contactTel}</li>
                    <div id="clear"></div>
                     <li class="w40">地址：<span>${bOrder.address}</span></li>
                    <div id="clear"></div>
                    </div>
                    </c:if>
                </div>
                
			<div id="check_remark">
                    <div id="title_c">
                    <li>备注：</li>
                    </div>
                    <div id="content_c">
                    <li>&nbsp;&nbsp; </li>
                    <div id="clear"></div>
                    </div>
                    <div id="title_c">
                    <li>操作记录：</li>
                    </div>
                    <div id="content_c">
                    <c:forEach var="orderLog" items="${orderLogs}"> 
                    <li>${orderLog.operatorName}${orderLog.action}</li>
                    </c:forEach>
                    <div id="clear"></div>
                    </div>
                </div>
                <div id="button"  <c:if test="${param['status']!=0}"> style="display:none;" </c:if>>
                <input name="confirm" onclick="javascript:window.location.href='bOrders.do?cmd=updateOrderType&id=${param['id']}&type=1'"  type="button" id="btn_confirm" class="inputsubmit" value="确认支付" style="margin-left:100px" />
          <!--       <input name="later" type="button" class="btn_later" value="稍后支付" style="margin-left:50px"/>
                <input name="cancel" type="button" class="btn_cancel" value="取消订单" style="margin-left:50px"/> -->
				</div>
</div><!--浮层结束-->
	</ul>




</body>
</html>